package com.caifu.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * 药物登记导出
 *
 * @author tww
 * ClassName: ExcelMeicineDistribution.java、
 * createTime: 2020年11月18日 17:43:53
 **/
@Data
@NoArgsConstructor
@ContentRowHeight(25)
@HeadRowHeight(30)
public class ExcelMedicine {

    private static final long serialVersionUID = 1L;

    /**
     * 药物登记日期
     */
    @ExcelProperty(value = {"药品进入情况", "日期"}, index = 0)
    @ColumnWidth(15)
    @DateTimeFormat("yyyy年MM月dd日")
    private Date registerDate;


    /**
     * 药物名称
     */
    @ExcelProperty(value = {"药品进入情况", "药品名称"}, index = 1)
    @ColumnWidth(20)
    private String meicineName;


    /**
     * 药物生产厂家
     */
    @ExcelProperty(value = {"药品进入情况", "厂家"}, index = 2)
    @ColumnWidth(20)
    private String manufactureFactory;

    /**
     * 药物规格
     */
    @ExcelProperty(value = {"药品进入情况", "规格"}, index = 3)
    @ColumnWidth(20)
    private String specification;

    /**
     * 药物数量
     */
    @ExcelProperty(value = {"药品进入情况", "数量"}, index = 4)
    @ColumnWidth(20)
    private String medicineCount;

    /**
     * 药物批号
     */
    @ExcelProperty(value = {"药品进入情况", "批号"}, index = 5)
    @ColumnWidth(25)
    private String batchNumber;

    /**
     * 药物有效期
     */
    @ExcelProperty(value = {"药品进入情况", "有效期"}, index = 6)
    @DateTimeFormat("yyyy年MM月dd日")
    @ColumnWidth(15)
    private Date validityDate;

    /**
     * 药物服用方法
     */
    @ExcelProperty(value = {"药品进入情况", "服法"}, index = 7)
    @ColumnWidth(20)
    private String useMethod;


    /**
     * 家属姓名
     */
    @ExcelProperty(value = {"药品进入情况", "家属签名"}, index = 8)
    @ColumnWidth(15)
    private String familyName;

    /**
     * 管理员编号
     */
    @ExcelProperty(value = {"药品进入情况", "经办人"}, index = 9)
    @ColumnWidth(15)
    private String tellerName;


}
